import {debounce} from 'common/utils'
// 混入
export const itemListerMixin = {
    data() {
        return {
            itemImgListener: null,
            newRefresh: null,
        }
    },
    mounted() {
        
        this.newRefresh =  debounce(this.$refs.scroll.refresh, 50)
         
        this.itemImgListener = () => {
            // console.log('------------') 
            // this.$refs.scroll.refresh()
           
           this.newRefresh()
        }
        this.$bus.$on('itemImageLoad', this.itemImgListener) 
        // console.log(8888)
    },
    
}